<div class="panel"><h4>Parent Request for Information Update</h4></div>

<?=form_open('profile/profile_update_request_by_parent/0',' method="GET"')?>

	<div class="row">
		<div class="large-4 columns">
			<label>Keyword:</label>
			<input type="text" name="keyword" value="<?=isset($_GET['keyword'])?$_GET['keyword']:''?>" placeHolder="Keyword" >
		</div>
		<div class="large-4 columns">
			<label>Search By:</label>
			<?php
				echo form_dropdown('search_by', $search_by, isset($_GET['search_by'])?$_GET['search_by']:'enrollments.e_student_id');
			?>
		</div>
		<div class="large-4 columns">
			<label>Status:</label>
			<?php
				echo form_dropdown('status', $status, isset($_GET['status'])?$_GET['status']:'PENDING');
			?>
		</div>
	</div>

	<div class="input-block">
		<button class="btn btn-primary" type="submit" name="search_request" value="search_request" ><i class="fa fa-search"></i>&nbsp; Search</button>
		<a href="<?=site_url('profile/profile_update_request_by_parent')?>" class="btn">Clear</a>
	</div>

<?=form_close();?>

<div class="row">
	<div class="table-responsive">
		<?=$links?><p></p>
		<table class="table">
			<tr>
				<th>Request Date</th>
				<th>Request By</th>
				<th>Student ID #</th>
				<th>Fullname</th>
				<th>Grade Level</th>
				<th>Status</th>
				<th></th>
			</tr>

			<?if($search):?>
				<?foreach ($search as $k => $v):?>
					<tr>
						<td><?=date('m-d-Y', strtotime($v->created))?></td>
						<td><?=$v->guardian?></td>
						<td><strong><?=$v->idno?></strong></td>
						<td><strong><?=ucwords(strtolower($v->fullname))?></strong></td>
						<td><?=$v->level_desc?></td>
						<td><?=$v->status?></td>
						<td>
							<a href="<?=site_url('profile/view_parent_request/'.__link($v->id))?>" class="btn btn-mini" >View</a>
						</td>
					</tr>
				<?endforeach;?>
			<?else:?>
				<tr><td colspan="7"><i class="fa fa-info"></i>&nbsp; No available record.</td></tr>
			<?endif;?>
		</table>
		<?=$links?>
	</div>
</div>